<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<List<DemoData.Model.Order>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index.apsx
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Orders</h2>
    
    <br />
    
    <table>
        <tr>
            <td>Product Name</td>
            <td>Order Unit Price</td>
            <td>Order Unit Price Discount</td>
            <td>Order Quantity</td>
            <td>Order Total</td>
        </tr>
    <%
        foreach (DemoData.Model.Order order in this.Model)
        { %>
        
        <tr>
            <td><%= order.Product.ProductName %></td>
            <td><%= order.UnitPrice %></td>
            <td><%= order.UnitPriceDiscount %></td>
            <td><%= order.Quantity %></td>
            <td><%= order.LineTotal %></td>                        
        </tr>
        
     <% }
    %>
    
    </table>
    
</asp:Content>
